/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package beans.person;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author xmarti
 */
public class Company extends Person {
    private String description=null ;
    private List<Provider> providers= new ArrayList<Provider>();
    private List<Customer> customers= new ArrayList<Customer>();;
    public Company() {
    }
    

    public Company(String name, String surname1, String surname2, String documentType, String document, String address, String city, String country, String zipCode,String phone, String email) {
        super(name, surname1, surname2, documentType, document, address, city, country, zipCode,phone,email);
    }
    
    public Company(String name, String surname1, String surname2, String documentType, String document, String address, String city, String country, String zipCode, String phone,String email, String description, List<Provider> providers, List<Customer> customers) {
        super(name, surname1, surname2, documentType, document, address, city, country, zipCode,phone,email);
        this.description = description;
        this.providers = providers;
        this.customers = customers;
    }
    
    

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public List<Customer> getCustomers() {
        return customers;
    }

    public void setCustomers(List<Customer> customers) {
        this.customers = customers;
    }

    public List<Provider> getProviders() {
        return providers;
    }

    public void setProviders(List<Provider> providers) {
        this.providers = providers;
    }    
    public void addProvider (Provider provider){
        this.providers.add(provider);
    }
    public void addCustomer (Customer customer){
        this.customers.add(customer);
    }
}
